const btnList = [{
		index: 1,
		url: require('./../assets/images/btn-1.png'),
		value: '国务院行程卡'
	},
	{
		index: 2,
		url: require('./../assets/images/btn-2.png'),
		value: '溯源e通行'
	},
	{
		index: 3,
		url: require('./../assets/images/btn-3.png'),
		value: '本地出返济报备'
	},
	{
		index: 4,
		url: require('./../assets/images/btn-4.png'),
		value: '外地主动申报'
	},
	{
		index: 5,
		url: require('./../assets/images/btn-5.png'),
		value: '有奖举报'
	},
	{
		index: 6,
		url: require('./../assets/images/btn-6.png'),
		value: '每日健康打卡'
	},
	{
		index: 7,
		url: require('./../assets/images/btn-7.png'),
		value: '四类药品登记'
	},
	{
		index: 8,
		url: require('./../assets/images/btn-8.png'),
		value: '封控求助'
	},
	{
		index: 9,
		url: require('./../assets/images/btn-9.png'),
		value: '核酸检测点查询'
	},
	{
		index: 10,
		url: require('./../assets/images/btn-10.png'),
		value: '收发国际快递申报'
	}
]
export default {
	btnList
}
// 加密身份证号码
export function EncryptCert(cert) {
	return cert.replace(/(?<=\d{3})\d{12}(?=\d{2})/, "************")
}
// 加密名字
export function EncryptName(name) {
	let newStr;
	if (name.length === 2) {
		newStr = name.substr(0, 1) + '*';
	} else if (name.length > 2) {
		let char = '';
		for (let i = 0, len = name.length - 2; i < len; i++) {
			char += '*';
		}
		newStr = name.substr(0, 1) + char + name.substr(-1, 1);
	} else {
		newStr = name;
	}

	return newStr;
}
